package com.ljb.android.component.user.router

import android.app.Activity
import com.alibaba.android.arouter.facade.template.IProvider
import com.ljb.android.component.user.bean.UserBean

interface IUserRouterService : IProvider {

    /**
     *  获取当前用户信息
     */
    fun getUserInfo(): UserBean?

    /**
     * 判断用户是否登录
     * */
    fun isLogin(act:Activity? = null , needLogin: Boolean = false): Boolean

    /**
     * 判断用户是否登录，并调起登录要求返回登录结果
     * */
    fun isLoginForResult(act:Activity , reqCode: Int): Boolean

}